package com.zjitc.model;

import com.sun.corba.se.impl.oa.poa.POAPolicyMediatorImpl_R_UDS;

import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/19 14:46
 * @description:
 */
public class CartItem {
  private Integer cartid;
  private Integer pid;
  private Integer quantity;
  private Integer uid;
  private Product product;

  @Override
  public String toString() {
    return "CartItem{" +
            "cartid=" + cartid +
            ", pid=" + pid +
            ", quantity=" + quantity +
            ", uid=" + uid +
            ", total=" + total +
            '}';
  }

  private double total;

  public Integer getCartid() {
    return cartid;
  }

  public void setCartid(Integer cartid) {
    this.cartid = cartid;
  }

  public Integer getPid() {
    return pid;
  }

  public void setPid(Integer pid) {
    this.pid = pid;
  }

  public Integer getQuantity() {
    return quantity;
  }

  public void setQuantity(Integer quantity) {
    this.quantity = quantity;
  }

  public Integer getUid() {
    return uid;
  }

  public void setUid(Integer uid) {
    this.uid = uid;
  }

  public double getTotal() {
    return total;
  }

  public void setTotal(double total) {
    this.total = total;
  }


  public Product getProduct() {
    return product;
  }

  public void setProduct(Product product) {
    this.product = product;
  }

  public CartItem(Integer cartid, Integer pid, Integer quantity, Integer uid, double total, Product product) {
    this.cartid = cartid;
    this.pid = pid;
    this.quantity = quantity;
    this.uid = uid;
    this.total = total;
    this.product =product;
  }

  public CartItem() {
  }
}
